package guo.mytesttreeview.bean;

import com.chen.treeview.model.NodeChild;
import com.chen.treeview.model.NodeId;
import com.chen.treeview.model.NodeName;
import com.chen.treeview.model.NodePid;

import java.util.List;

/**
 * Created by ${GuoZhaoHui} on 2017/11/14.
 * Email:guozhaohui628@gmail.com
 */

public class LocalNode {
    @NodePid
    public String parentId;

    @NodeId
    public String id;

    @NodeName
    public String name;

    @NodeChild
    public List<LocalNode> child;

    @Override
    public String toString() {
        return "LocalNode{" +
                "parentId='" + parentId + '\'' +
                ", id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", child=" + child +
                '}';
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<LocalNode> getChild() {
        return child;
    }

    public void setChild(List<LocalNode> child) {
        this.child = child;
    }
}
